package gupaoedu.containerSingleton;

import gupaoedu.ConcurrentExecutor;

/**
 * gupaoedu.containerSingleton
 * linwenjie
 * 2019-06-19
 */
public class ContianerSingleTest {
    public static void main(String[] args) {
        try {
            ConcurrentExecutor.execute(new ConcurrentExecutor.RunHandler() {
                @Override
                public void handler() {
                    Object obj = ContainerSingleton.getInstance("gupaoedu.containerSingleton.Pojo");;
                    System.out.println(System.currentTimeMillis() + ": " + obj);
                }
            },10,6);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

